-- GENERATED SPELL FOR [Whip Lasher] --


function spell0_13022(pUnit, Event) --@Lash of Pain,n/a--
pUnit:FullCastSpellOnTarget(21987,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13022', 639, 1)
end

function Sorts_13022(pUnit, Event)
local choix_sorts_13022 = math.random(0, 0)
if choix_sorts_13022 == 0 then
pUnit:RegisterEvent('spell0_13022', 1, 1)
end
end

function mob13022_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13022', math.random(1500, 3000), 1)
end

function mob13022_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13022_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13022_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13022, 1, 'mob13022_Action')
RegisterUnitEvent(13022, 2, 'mob13022_Leave')
RegisterUnitEvent(13022, 3, 'mob13022_Kill')
RegisterUnitEvent(13022, 4, 'mob13022_Die')
